package com.reggie.lotterysystem.dao.mapper;

import com.reggie.lotterysystem.dao.dataobject.ActivityUserDO;
import com.reggie.lotterysystem.service.enumclass.ActivityUserStatusEnum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ActivityUserMapper {

    int batchInsert(List<ActivityUserDO> activityUserDOList);

    List<ActivityUserDO> batchSelectAUIds(Long activityId, List<Long> userId);

    @Select("select * from activity_user where activity_id = #{activityId}")
    List<ActivityUserDO> selectByActivityId(Long activityId);

    void batchUpdateStatus(Long activityId, List<Long> userIds, String status);
}
